package com.darkness.rpc.framework.common;

import java.io.Serializable;

/**
 * @author darkness
 * @time 2022/3/7 10:50
 * @description
 */
public class Invocation implements Serializable {

    private String group;
    private String version;
    private String interfaceName;
    private String methodName;
    private Class[] paramTypes;
    private Object[] args;

    public Invocation() {
    }

    public Invocation(String group, String version, String interfaceName, String methodName, Class[] paramTypes, Object[] args) {
        this.group = group;
        this.version = version;
        this.interfaceName = interfaceName;
        this.methodName = methodName;
        this.paramTypes = paramTypes;
        this.args = args;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getInterfaceName() {
        return interfaceName;
    }

    public void setInterfaceName(String interfaceName) {
        this.interfaceName = interfaceName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public Class[] getParamTypes() {
        return paramTypes;
    }

    public void setParamTypes(Class[] paramTypes) {
        this.paramTypes = paramTypes;
    }

    public Object[] getArgs() {
        return args;
    }

    public void setArgs(Object[] args) {
        this.args = args;
    }
}
